package service;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import pojo.Student;
import util.Page;
import java.util.List;

public interface StudentService {
    /*条件分页查询
    @Param page 页码
    @Param pageSize:每页显示的条数
    @return

    Page page(Integer page, Integer pageSize);*/
    // 定义行为  crud
    // 查询用户
    List<Student> findAll(Student student, int offset, int pageSize);
    // 查询用户总数
    int count(Student student);

    boolean login(Student student);

    int addStudent(Student student);

    int deleteStudentById(int sId);
    Student findById(int sId);

    int updateStudent(Student student);

    List<Student> findAll();

    //List<Student> findAll(int offset, int limit);
}
